﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>课程详情</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
    <link href="https://cdn.bootcss.com/amazeui/2.7.2/css/amazeui.css" rel="stylesheet" />
    <link href="http://s.amazeui.org/assets/2.x/css/amaze.min.css?v=ivneioml" rel="stylesheet" />
    <link href="css/common.css" rel="stylesheet" />
    <style>
        body {
            background: #f4f5f9;
            font-family: 微软雅黑;
        }

        .head {
            width: 100%;
            overflow: hidden;
            position: relative;
            margin-bottom: 3%;
        }

        .bg {
            background-repeat: no-repeat;
            background-position: center;
            background-size: cover;
            position: relative;
            max-height: 20rem;
            height: 20rem;
        }

        .info {
            display: block;
            margin-bottom: 1%;
            position: absolute;
            left: 5%;
            bottom: 5%;
            color: #fff;
        }

        .name-info {
            background: #fff;
            padding: 3% 5%;
            width: 100%;
        }

        .name-info-main {
            color: #000;
            font-size: 1.6rem;
            margin-bottom: 3%;
            display: block;
        }

        .game_maind1 {
            background: #fff;
            display: flex;
            justify-content: space-between;
        }

        .main {
            width: 100%;
            margin-bottom: 17%;
        }

        .main-course {
            width: 100%;
            background: #fff;
            overflow: hidden;
            padding: 0 0 3% 0;
            margin-bottom: 3%;
        }

        .main-course-head {
            border-left: 3px solid #54dea7;
            color: #54dea7;
            padding: 2%;
            display: block;
        }

        .main-course-info {
            padding: 3% 5%;
        }

        .main-course-info-title {
            color: #3a3a3a;
            text-align: center;
            width: 100%;
            display: block;
            font-size: 1.7rem;
            margin-bottom: 2%;
        }
        /*9a9a9a*/
        .main-course-info-body {
            color: #9a9a9a;
            display: block;
            font-size: 1.3rem;
        }

        .am-list-news-default .am-list .am-list-item-desced .am-list-item-text {
            margin-top: 0.2rem;
        }

        .am-list > li {
            border-top: none;
            margin-bottom: 0.1%;
        }

        .am-list-news-default {
            margin: 0;
        }

        .main-train {
            background: #fff;
            width: 100%;
            overflow: hidden;
            margin-bottom: 3%;
        }

        .main-train-info {
            padding: 2% 4%;
            width: 100%;
            overflow: hidden;
            padding-bottom: 0;
        }

        .main-comment {
            background: #fff;
            width: 100%;
            overflow: hidden;
            margin-bottom: 3%;
        }

        .main-comment-info {
            padding: 2% 4%;
            width: 100%;
            overflow: hidden;
            padding-bottom: 0;
        }

        .comment-info-details {
            width: 100%;
            border-bottom: 1px solid #cbcbcb;
            margin-bottom: 1%;
        }

        .comment-details-top {
            overflow: hidden;
            width: 100%;
            padding: 2%;
            display: flex;
            align-items: center;
        }

        .comment-img {
            max-height: 50px;
            width: 20%;
            max-width: 50px;
            float: left;
        }

            .comment-img img {
                width: 100%;
                border-radius: 50%;
            }

        .comment-head {
            width: 80%;
            float: left;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 60px;
        }

        .comment-left {
            padding-left: 7%;
            overflow: hidden;
            width: 59%;
        }

            .comment-left span {
                display: block;
                color: #9a9a9a;
                font-size: 1.3rem;
                width: 100%;
            }

        .comment-right {
            color: #9a9a9a;
            font-size: 1.4rem;
        }

        .comment-details-bottom {
            overflow: hidden;
            width: 100%;
            padding: 2%;
            color: #9a9a9a;
            font-size: 1.4rem;
        }

        .fixed {
            position: fixed;
            bottom: 0;
            width: 100%;
            height: 8%;
            background: #fff;
        }

        .active_btn {
            width: 50%;
            background: #54dea7;
            color: #fff;
            text-align: center;
            float: left;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .price {
            width: 50%;
            height: 100%;
            float: left;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .am-nav-tabs {
            border: 1px solid #efefef;
            background: #fff;
        }

            .am-nav-tabs > li.am-active > a, .am-nav-tabs > li.am-active > a:hover, .am-nav-tabs > li.am-active > a:focus {
                border: none;
                border-bottom: 1px solid #6fddb1;
                color: #fff;
                font-weight: bold;
            }

            .am-nav-tabs > li > a {
                padding: 10% 0;
            }

        .scrollspy-nav a.am-active {
            color: #fff;
            font-weight: bold;
        }

        .mengceng {
            background: rgba(0,0,0,0.2);
            position: fixed;
            width: 100%;
            height: 100%;
            top: 0;
            display: none;
            z-index: 999999;
        }

        .signup {
            position: absolute;
            width: 100%;
            height: 60%;
            background: #f4f5f9;
            bottom: 0;
        }

        .clickhide {
            position: absolute;
            width: 100%;
            height: 40%;
            top: 0;
        }

        .courseplaninfo {
            width: 100%;
            padding: 0 3%;
            height: 88%;
            overflow-y: auto;
        }

        .courseplanbody {
            padding: 0 2%;
            width: 100%;
            background: #fff;
            border-radius: 10px;
            margin-top: 3%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 21%;
        }

        .coursedateimg {
            overflow: hidden;
        }

            .coursedateimg span {
                display: flex;
                width: 40px;
                height: 40px;
                background: #c7c7c7;
                justify-content: center;
                align-items: center;
                border-radius: 50%;
                color: #fff;
                font-size: 2.2rem;
            }

        .coursedateinfo {
            color: #c8c7c7;
            font-size: 1.4rem;
            margin-left: -20%;
        }

        .coursedateinfo_sp1 {
            display: block;
            font-size: 1.5rem;
        }

        .coursedateinfo_sp2 {
            display: block;
        }

        .mengceng2 {
            background: rgba(0,0,0,0.2);
            position: fixed;
            width: 100%;
            height: 100%;
            top: 0;
            display: none;
            z-index: 999999;
        }

        .signup2 {
            position: absolute;
            width: 100%;
            height: 60%;
            background: #f4f5f9;
            bottom: 0;
        }

        .clickhide2 {
            position: absolute;
            width: 100%;
            height: 40%;
            top: 0;
        }
        .mengceng3 {
            background: rgba(0,0,0,0.2);
            position: fixed;
            width: 100%;
            height: 100%;
            top: 0;
            display: none;
            z-index: 999999;
        }

        .signup3 {
            position: absolute;
            width: 100%;
            height: 60%;
            background: #f4f5f9;
            bottom: 0;
        }

        .clickhide3 {
            position: absolute;
            width: 100%;
            height: 40%;
            top: 0;
        }
    </style>
</head>
<body>
    <div id="page" v-cloak>
        <div class="head">
            <div class="bg" v-bind:style="{ backgroundImage:'url('+courseInfo.Img+')' }">
                <span class="info" style="font-size: 1.6rem;bottom: 18%;">飞羽体育</span>
                <span class="info" style="font-size: 1.3rem">报名：{{courseInfo.aStartTime}} 至 {{courseInfo.aEndTime}}</span>
            </div>
            <header data-am-widget="header" class="am-header am-header-default" style="background-color:rgba(0,0,0,0);position: absolute;top: 0;">
                <div class="am-header-left am-header-nav">
                    <a href=" " class="">
                        <img class="am-header-icon-custom" src="images/toleft.png" alt="" />
                    </a>
                </div>
                <div class="am-header-right am-header-nav" style="width: 49px;height: 49px;display: flex;justify-content: center;align-items: center">
                    <a href="" style="width: 100%;height: 100%;justify-content: center;align-items: center;display: flex;">
                        <span class="am-icon am-icon-phone"
                              style="display: flex;justify-content: center;
                      align-items: center;height: 35px;width: 35px;
                      color: #fff;border: 1px solid #fff;border-radius: 50%"></span>
                    </a>
                </div>
            </header>
            <div class="name-info">
                <span class="name-info-main">{{courseInfo.Name}}</span>
                <div class="game_maind1">
                    <div><img src="images/personticket01.png" alt="" style="width: 7%;float: left;display: block; margin-top: 4%;margin-right: 1%"><span style="color: #606060;font-size: 1.4rem">{{courseInfo.OrganizeName}}</span></div>
                    <div class="signupshow"><span class="am-badge am-radius" style="border: 1px solid #fc8b5d;color: #fc8b5d;background: inherit;font-weight: 100;border-radius: 5px;font-size: 1.5rem">课程安排</span></div>
                </div>
            </div>
        </div>
        <div class="main">
            <nav class="scrollspy-nav" data-am-scrollspynav="{offsetTop: 45}" data-am-sticky>
                <ul class="am-tabs-nav am-nav am-nav-tabs" style="background: #fff">
                    <li class="am-u-sm-4 main-li"><a href="#course" style="color: #8f8f8f;text-align: center;">课程简介</a></li>
                    <li class=" am-u-sm-4 main-li"><a href="#train" style="color: #8f8f8f;text-align: center;">教练简介</a></li>
                    <li class=" am-u-sm-4 main-li"><a href="#comment" style="color: #8f8f8f;text-align: center;">评论</a></li>
                </ul>
            </nav>
            <div id="course" class="main-course">
                <span class="main-course-head">课程简介</span>
                <div class="main-course-info">
                    <span v-if="courseinfohidden==0" class="main-course-info-body">
                        {{pinfo}}
                    </span>
                    <span v-else class="main-course-info-body" v-html="courseInfo.Info">
                        {{courseInfo.Info}}
                    </span>
                </div>
                <span v-on:click="clickMore()" style="display: block;text-align: center;color: #9a9a9a;font-size: 1.4rem;">展开全部 <span class="am-icon am-icon-angle-down"></span></span>
            </div>
            <div id="train" class="main-train">
                <span class="main-course-head">教练简介</span>
                <div class="main-train-info">
                    <div data-am-widget="list_news" style="margin-bottom: 0" class="am-list-news am-list-news-default am-no-layout">
                        <div class="am-list-news-bd">
                            <ul class="am-list" style="margin-bottom: 0">
                                <li style="border-top:none;max-height: 160px;position: relative;" class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left">
                                    <div class="am-u-sm-3 am-list-thumb" style="max-height: 60px;overflow: hidden">
                                        <a href="">
                                            <img v-bind:src="coachInfo.faceImg" style="border-radius: 50%;width:75%;display: block;margin: 0 auto">
                                        </a>
                                    </div>
                                    <div class=" am-u-sm-9 am-list-main" style="max-height: 100px;position: relative;">
                                        <div class="am-list-item-hd" style="font-size: 1.5rem;margin-bottom:3%">
                                            {{coachInfo.Name}}
                                            <span class="am-badge am-radius" style="border: 1px solid #fc8b5d;color: #fc8b5d;background: inherit;font-weight: 100;border-radius: 5px;font-size: 1.3rem">主教练</span>
                                            <span class="am-icon am-icon-twitch" style="background: #54dea7;color: #fff;font-size: 1.3rem;padding:0 2%;border-radius: 5px"></span>
                                        </div>
                                        <!-- <div class="am-list-item-text" style="color: #424242;">{{courseInfo.OrganizeName}}</div>-->
                                        <div class="am-list-item-text" style="color: #808080;margin-top:3%">{{coachInfo.Grade}}</div>
                                        <div class="am-list-item-text" style="color: #808080;margin-top:3%">{{coachInfo.profile}}</div>
                                    </div>
                                    <div style="height: 100%;width: 10%;display: flex;position: absolute;top: -0.1rem;right: 0;justify-content: center;align-items: center">
                                        <span class="am-icon am-icon-angle-right" style="color: #808080;font-size: 2.4rem"></span>
                                    </div>
                                </li>
                                <li v-for="coach2I in coach2Info" style="border-top:none;max-height: 160px;position: relative;" class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left">
                                    <div class="am-u-sm-3 am-list-thumb" style="max-height: 60px;overflow: hidden">
                                        <a href="">
                                            <img v-bind:src="coach2I.coach.faceImg" style="border-radius: 50%;width:75%;display: block;margin: 0 auto">
                                        </a>
                                    </div>
                                    <div class=" am-u-sm-9 am-list-main" style="max-height: 100px;position: relative;">
                                        <div class="am-list-item-hd" style="font-size: 1.5rem;margin-bottom:3%">
                                            {{coach2I.coach.Name}}
                                            <span class="am-badge am-radius" style="border: 1px solid #458de1;color: #458de1;background: inherit;font-weight: 100;border-radius: 5px;font-size: 1.3rem"> 助理教练</span>
                                            <span class="am-icon am-icon-twitch" style="background: #54dea7;color: #fff;font-size: 1.3rem;padding:0 2%;border-radius: 5px"></span>
                                        </div>
                                        <!--<div class="am-list-item-text" style="color: #424242;"></div>-->
                                        <div class="am-list-item-text" style="color: #808080;margin-top:3%">{{coach2I.coach.Grade}}</div>
                                        <div class="am-list-item-text" style="color: #808080;margin-top:3%">{{coach2I.coach.profile}}</div>
                                    </div>
                                    <div style="height: 100%;width: 10%;display: flex;position: absolute;top: -0.1rem;right: 0;justify-content: center;align-items: center">
                                        <span class="am-icon am-icon-angle-right" style="color: #808080;font-size: 2.4rem"></span>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div id="comment" class="main-comment">
                <span class="main-course-head">评论 <span style="color: #b7b7b7;float:right;" v-on:click="clickpinglun()">所有评论 <span class="am-icon am-icon-angle-right"></span></span></span>
                <div class="main-comment-info">
                    <div v-for="comment in trainEvaluate" class="comment-info-details">
                        <div class="comment-details-top">
                            <div class="comment-img">
                                <img v-bind:src="comment.Userg.headImg" alt="">
                            </div>
                            <div class="comment-head">
                                <div class="comment-left">
                                    <span style="color: #000;font-size: 1.6rem">{{comment.Userg.Name}}</span>
                                    <span>{{comment.date}}</span>
                                </div>
                                <!--<div class="comment-right">
                                    <span class="am-icon am-icon-heart-o"></span>
                                </div>-->
                            </div>
                        </div>
                        <div class="comment-details-bottom">
                            <span>{{comment.Evaluate.Info}}</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="fixed">
            <div class="price">{{courseInfo.Price}}元</div>
            <div class="active_btn xuanzebaomin">报名</div>
        </div>
        <div class="mengceng">
            <div class="clickhide">

            </div>
            <div class="signup">
                <div style="text-align: center;width: 100%;padding: 3%;border-bottom: 1px solid #efefef;height: 12%;background: #fff">
                    <span>课程表</span><span class="am-icon am-icon-close" style="font-weight: 100;float: right;font-size: 1.8rem;margin-top: -2%;color: #c8c7c7;"></span>
                </div>
                <div class="courseplaninfo">
                    <div v-for="trainInfo in trainInfoList" class="courseplanbody">
                        <div class="coursedateimg">
                            <span class="am-icon am-icon-calendar-minus-o" style="background: #54dea7"></span>
                        </div>
                        <div class="coursedateinfo">
                            <span class="coursedateinfo_sp1">{{trainInfo.date}}</span>
                            <span class="coursedateinfo_sp2"><span class="am-icon am-icon-clock-o" style="margin-right: 5%"></span>{{trainInfo.actvitytime}}</span>
                        </div>
                        <div class="">
                            <button class="am-btn am-radius" style="color: #fff;font-size: 1.3rem;background: #54dea7;">{{trainInfo.state}}</button>
                        </div>
                    </div>
                    <div v-for="trainInfo in trainInfo2List" class="courseplanbody">
                        <div class="coursedateimg">
                            <span class="am-icon am-icon-calendar-minus-o"></span>
                        </div>
                        <div class="coursedateinfo">
                            <span class="coursedateinfo_sp1">{{trainInfo.date}}</span>
                            <span class="coursedateinfo_sp2"><span class="am-icon am-icon-clock-o" style="margin-right: 5%"></span>{{trainInfo.actvitytime}}</span>
                        </div>
                        <div class="">
                            <button class="am-btn am-radius" style="color: #fff;font-size: 1.3rem;">{{trainInfo.state}}</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="mengceng2">
            <div class="clickhide2">

            </div>
            <div class="signup2">
                <div style="text-align: center;width: 100%;padding: 3%;border-bottom: 1px solid #efefef;height: 12%;background: #fff">
                    <span>选择次卡</span><span class="am-icon am-icon-close am-icon-close2" style="font-weight: 100;float: right;font-size: 1.8rem;margin-top: -2%;color: #c8c7c7;"></span>
                </div>
                <div class="courseplaninfo">
                    <div v-for="kaciInfo in kaci" class="courseplanbody" v-on:click="chickkaci(kaciInfo)">
                        <div class="coursedateimg">
                            <span class="am-icon am-icon-calendar-minus-o" style="background: #54dea7"></span>
                        </div>
                        <div class="coursedateinfo">
                            <span class="coursedateinfo_sp1">{{kaciInfo.split(",")[0]}}次卡, 金额: {{kaciInfo.split(",")[1]}}</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="mengceng3">
            <div class="clickhide3">

            </div>
            <div class="signup3">
                <div style="text-align: center;width: 100%;padding: 3%;border-bottom: 1px solid #efefef;height: 12%;background: #fff">
                    <span>填写报名信息</span><span class="am-icon am-icon-close am-icon-close3" style="font-weight: 100;float: right;font-size: 1.8rem;margin-top: -2%;color: #c8c7c7;"></span>
                </div>
                <div class="courseplaninfo">
                    <div class="am-form">
                        <div class="am-form-group">
                            <label for="doc-ipt-name-1">姓名<span style="color:red;">*</span><span style="color:red;" class="xingming"></span></label>
                            <input type="text" class="" v-model="Name" id="doc-ipt-name-1" placeholder="请输入您的姓名">
                        </div>
                        <div class="am-form-group">
                            <label for="doc-ipt-tel-1">电话<span style="color:red;">*</span><span style="color:red;" class="dianhua"></span></label>
                            <input type="tel" class="" v-model="Phone" id="doc-ipt-tel-1" placeholder="输入电话">
                        </div>
                        <div class="active_btn baoming" style="width:100%">报名</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>

<script src="https://cdn.bootcss.com/jquery/1.8.3/jquery.js"></script>
<script src="js/common.js"></script>
<script src="https://cdn.bootcss.com/vue/2.5.9/vue.js"></script>
<script src="http://cdn.amazeui.org/amazeui/2.7.2/js/amazeui.min.js"></script>
<script>
    var page = new Vue({
        el: "#page",
        venueid: "",
        data: {
            tel: 'tel:6846463',
            courseinfohidden: 0,
            courseInfo: {},
            coachInfo: {},
            coach2Info: [],
            trainEvaluate: [],
            trainInfo2List: [],
            trainInfoList: [],
            pinfo: '',
            kaci: [],
            clickkaci: '',
            Name: "",
            Phone:"",
        },
        methods: {
            clickMore: function () {
                this.courseinfohidden = !this.courseinfohidden
            },
            getInfo: function () {
                var that = this;
                $.ajax({
                    type: 'POST',
                    url: window.apiUrl + '/Api/Field/TrainDetails',
                    data: { "gId": that.venueid },
                    success: function (data) {
                        console.log(data);
                        if (data.errcode == 0) {
                            that.courseInfo = data.data.venueInfo;
                            that.pinfo = data.data.pinfo;
                            that.coachInfo = data.data.coachInfo.coach;
                            that.coach2Info = data.data.coach2Info;
                            that.trainInfoList = data.data.trainInfoList;
                            that.trainInfo2List = data.data.trainInfo2List;
                            that.trainEvaluate = data.data.trainEvaluate;
                            tel = 'tel:' + that.courseInfo.OrganizePhone;
                            //console.log(that.courseInfo.state);
                            if (that.courseInfo.state == 0)
                            { $('.fixed').show(); }
                            else { $('.fixed').hide(); }
                            that.kaci = data.data.kaci;

                        }
                    }
                });
            },
            clickpinglun: function () {
                location.replace("TrainEvaluatelist.html?gId=" + this.venueid);
            },
            chickkaci: function (venueid) {
                this.courseInfo.Price = venueid.split(",")[1];
                this.clickkaci = venueid;
                $('.mengceng2').hide();
                //弹出报名信息
                $('.xingming').html("");
                $('.dianhua').html("");
                $('.mengceng3').show();
            },
            
        }
    })
    $(function () {
        var actid = $.getParam("gId");
        page.venueid = actid;
        //console.log(112);
        page.getInfo();      
    })

    //点击显示课表
    $('.signupshow').click(function () {
        $('.mengceng').show();
    });
    //点击关闭课表
    $('.am-icon-close').click(function () {
        $('.mengceng').hide();
    });
    //点击关闭课表报名
    $('.clickhide').click(function () {
        $('.mengceng').hide();
    });
    //点击关闭课表
    $('.am-icon-close2').click(function () {
        $('.mengceng2').hide();
    });
    //点击关闭填写信息
    $('.am-icon-close3').click(function () {
        $('.mengceng3').hide();
    });
    //点击关闭填写信息
    $('.clickhide3').click(function () {
        $('.mengceng3').hide();
    });
    //点击关闭课表报名
    $('.clickhide2').click(function () {
        $('.mengceng2').hide();
    });
    //点击金额
    $('.price').click(function () {
        if (page.kaci.length > 0) {
            $('.mengceng2').show();
        }        
    });
    //点击报名弹出选项
    $('.xuanzebaomin').click(function () {
        if (page.courseInfo.Price == 0) {
            $('.mengceng2').show();
        }
        else {
            //弹出报名信息
            $('.xingming').html("");
            $('.dianhua').html("");
            $('.mengceng3').show();
            //if (page.courseInfo.MaxNum == "10000") {
            //    $.ajax({
            //        url: apiUrl + "/Api/Field/AddTrainCardsign",
            //        data: { "gId": page.venueid, "clickkaci": page.clickkaci },
            //        type: "POST",
            //        success: function (data) {
            //            if (data.errcode == 0) {
            //                alert(data.errmsg);
            //                location.replace("TrainCardUserDetails.html?gId=" + data.data.gId);
            //            } else {
            //                alert(data.errmsg);
            //            }

            //        }
            //    });
            //}
            //else {
            //    $.ajax({
            //        url: apiUrl + "/Api/Field/AddTrainsign",
            //        data: { "gId": page.venueid },
            //        type: "POST",
            //        success: function (data) {
            //            if (data.errcode == 0) {
            //                alert(data.errmsg);
            //                location.replace("TrainUserDetails.html?gId=" + data.data.gId);
            //            } else {
            //                alert(data.errmsg);
            //            }

            //        }
            //    });
            //}
        }
    });

    $('.baoming').click(function () {
        var Name = page.Name;
        var Phone = page.Phone;
        if (Name == "")
        {
            $('.xingming').html("请输入姓名");
                return false;
        }
        else if (Phone == "") {
            $('.dianhua').html("请输入电话");
                return false;
        }
        else
        {
            if (page.courseInfo.MaxNum == "10000") {
                $.ajax({
                    url: apiUrl + "/Api/Field/AddTrainCardsign",
                    data: { "gId": page.venueid, "clickkaci": page.clickkaci, "Name": Name, "Phone": Phone },
                    type: "POST",
                    success: function (data) {
                        if (data.errcode == 0) {
                            alert(data.errmsg);
                            location.replace("TrainCardUserDetails.html?gId=" + data.data.gId);
                        } else {
                            alert(data.errmsg);
                        }

                    }
                });
            }
            else {
                $.ajax({
                    url: apiUrl + "/Api/Field/AddTrainsign",
                    data: { "gId": page.venueid, "Name": Name, "Phone": Phone },
                    type: "POST",
                    success: function (data) {
                        if (data.errcode == 0) {
                            alert(data.errmsg);
                            location.replace("TrainUserDetails.html?gId=" + data.data.gId);
                        } else {
                            alert(data.errmsg);
                        }
                    }
                });
            }
        }
            
    });
</script>
